package cn.tedu.properties.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class PropertiesSaveParam {
    @ApiModelProperty(value = "资产id")
    Long id;
    @NotBlank
    @ApiModelProperty(value = "资产名")
    String assetName;
    @ApiModelProperty(value = "资产类别id")
    Integer categoryId;
    @ApiModelProperty(value = "资产类别")
    String assetCategory;
    @ApiModelProperty(value = "品牌")
    String brand;
    @ApiModelProperty(value = "备注")
    String remark;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "资产入库时间")
    Date addTime;

    @ApiModelProperty(value = "入库数量")
    Integer addNum;
}
